#pragma once

#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <vector>
#include <utility>
#include <string>
#define ONE_FRAME_DURATION 1.0f/60.0f

extern sf::RenderWindow app;
extern float viewWidth;
extern float viewHeight;

extern sf::Music Music;
extern std::vector<std::pair<sf::SoundBuffer,std::string> > Sounds; 
extern std::vector<sf::Sound> Players;
extern const sf::Input& mInput;

extern std::string gPlayerName;

bool handleMusic();
void playSound(std::string name);